const { Controller } = require('egg')
const fs = require('fs')

class MmmController extends Controller {
  async allInOne() {
    const data = {
        mods: {
            sr: [
                {
                    title: '三月七->帕姆',
                    images: ['https://images.gamebanana.com/img/ss/mods/6682d2e831095.jpg'],
                    originUrl: 'https://gamebanana.com/mods/496969',
                    author: {
                        nickname: 'Yomakimura',
                        url: 'https://gamebanana.com/members/3215040'
                    },
                    fileUrl: 'https://image-space.thebestxt.cc/mimod/march7.zip'
                },
                {
                    title: '花火->流萤',
                    images: ['https://images.gamebanana.com/img/ss/mods/65e83e673f300.jpg', 'https://images.gamebanana.com/img/ss/mods/65e83e9434357.jpg'],
                    originUrl: 'https://gamebanana.com/mods/499325',
                    author: {
                        nickname: 'Vlaaaa',
                        url: 'https://gamebanana.com/members/2167904'
                    },
                    fileUrl: 'https://image-space.thebestxt.cc/mimod/SparkleMod.zip',
                },
                {
                    title: '符玄小恶魔休闲装',
                    images: ['https://images.gamebanana.com/img/ss/mods/530-90_6517727f4925e.jpg'],
                    originUrl: 'https://gamebanana.com/mods/471310',
                    author: {
                        nickname: 'dakyoz uPic',
                        url: 'https://gamebamnana.com/members/2072135'
                    },
                    fileUrl: 'https://image-space.thebestxt.cc/mimod/Succubus3.zip',
                },
                {
                    title: '开拓者（女）白色短裙',
                    images: [
                        'https://images.gamebanana.com/img/ss/mods/6623fbd292af6.jpg',
                        'https://images.gamebanana.com/img/ss/mods/66256e7321e19.jpg',
                        'https://images.gamebanana.com/img/ss/mods/100-90_66256e7321e19.jpg',
                        'https://images.gamebanana.com/img/ss/mods/100-90_6626f9a7dd2fe.jpg',
                        'https://images.gamebanana.com/img/ss/mods/100-90_6623fc03d374b.jpg'
                    ],
                    originUrl: 'https://gamebanana.com/mods/508460#FileInfo_1218962',
                    author: {
                        nickname: 'ClairGundhildr',
                        url: 'https://gamebanana.com/members/3310357'
                    },
                    fileUrl: 'https://image-space.thebestxt.cc/mimod/TrailblazeDressMerge.zip',
                },
                {
                    title: '西装黄泉',
                    images: ['https://images.gamebanana.com/img/ss/mods/530-90_662be5fc087a2.jpg'],
                    originUrl: 'https://gamebanana.com/mods/509728',
                    author: {
                        nickname: 'ClairGundhildr',
                        url: 'https://gamebanana.com/members/3310357'
                    },
                    fileUrl: 'https://image-space.thebestxt.cc/mimod/VoidbladeSuit.zip',
                },
                {
                    title: '吸血鬼佩拉吸血鬼佩拉吸血鬼佩拉吸血鬼佩拉吸血鬼佩拉',
                    images: ['https://images.gamebanana.com/img/ss/mods/65d3aa3b529ed.jpg', 'https://images.gamebanana.com/img/ss/mods/100-90_65d56901b32f2.jpg', 'https://images.gamebanana.com/img/ss/mods/100-90_65d3acda4ad4f.jpg'],
                    originUrl: 'https://gamebanana.com/mods/496708',
                    author: {
                        nickname: 'ElGrandePadre',
                        url: 'https://gamebanana.com/members/2410264'
                    },
                    fileUrl: 'https://image-space.thebestxt.cc/mimod/pela_vamp.zip',
                },
                // {
                //     title: '',
                //     images: [''],
                //     originUrl: '',
                //     author: {
                //         nickname: '',
                //         url: ''
                //     },
                //     fileUrl: '',
                // },
            ],
            zzz: [],
            genshin: []
        },
        tool: {
            sr: 'https://image-space.thebestxt.cc/mimod/SrModTool.zip',
            genshin: '',
            zzz: ''
        }
    }

    this.ctx.body = {
        code: 200,
        msg: 'ok',
        data
    }
  }
}

module.exports = MmmController
